<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ include file="/WEB-INF/jsp/includes/common.jsp"%>
<html>
	<head>
		<%@ include file="/WEB-INF/jsp/includes/head.jsp"%>
		<link type="text/css" href="${ctx }/css/jqueryui/jquery.ptTimeSelect.css" rel="stylesheet" />
		<!--<link type="text/css" href="${ctx }/css/jHtmlArea/jHtmlArea.css" rel="stylesheet" />  -->
		<script type="text/javascript" src="${ctx }/js/lib/jquery.ptTimeSelect.js"></script>
		<!-- <script type="text/javascript" src="${ctx }/js/lib/jHtmlArea-0.7.5.js"></script> -->
		<script type="text/javascript" src="${ctx }/js/lib/kindeditor-all-min.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.messages_cn.js"></script>
		<script type="text/javascript" src="${ctx }/js/base/validateinfo.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.ajaxfileupload.js"> </script>
		<script type="text/javascript" src="${ctx }/js/activity/activeadd.js"></script>
	</head>
	<body>
		<%@ include file="/WEB-INF/jsp/includes/logo.jsp"%>
		<div class="container">
			<div class="main clearfix">
				<%@ include file="/WEB-INF/jsp/includes/nav.jsp"%>
				<div class="container2 fl">
					<div class="main">
						<h4 class="mb10"><span><a href="${ctx }/activity/index.do">活动列表</a>&nbsp;>&nbsp;</span><span class="fb">编辑活动</span></h4>
						<div class="content-wraper">
							<form action="${ctx }/activity/updateActivity.do" id="updateActivityForm" enctype="multipart/form-data" method="post">
								<p class="validate-tips"></p>
								<section class="active-baseinfo">
									<div class="title pl10">
										<h5>活动基本信息</h5>
									</div>
									<div class="content">
										<div class="item">
											<label><i>*</i>活动名称：</label>
											<input id="activityId" name="activityid" type="hidden"  value="${active.id}"/>
											<input id = "activeName" name="activeName" type="text"  value="${active.activeName}"/>
										</div>
										<div class="item clearfix">
											<div class="item-left">
											<input type="hidden" name="gameCode" id="gameCode" value="${active.gameCode}"/>
												<label><i>*</i>活动所属游戏：</label>
												<select name="gameName" id="gameName">
													<option >-请选择-</option>
													<nad:option name="gameName" list="gameNameList" listKey="strName" listValue="strValue" />
												</select>
											</div>
											<div class="item-right">
												<label>游戏类型：</label>
												<select name="gameType" id="gameType">
													 <option value="null">-请选择-</option>
													<nad:option name="gameType" list="gameTypeList" listKey="strName" listValue="strName" />
												</select>
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>游戏运营：</label>
												<input type="text" name="gameComOp" id="gameComOp" value="${active.gameComOp }"/>
											</div>
											<div class="item-right">
												<label>开发公司：</label>
												<input type="text"  name="gameComRd" id="gameComRd" value="${active.gameComRd }"/>
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>游戏专区：</label>
												<input type="text"  name="gameChannel" id="gameChannel" value="${active.gameChannel }"/>
											</div>
											<div class="item-right">
												<label>游戏官网：</label>
												<input type="text"  name="gameNet" id="gameNet" value="${active.gameNet }"/>
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>游戏论坛：</label>
												<input type="text"  name="gameBBS" id="gameBBS" value="${active.gameBBS }"/>
											</div>
											<div class="item-right">
												<label>游戏下载：</label>
												<input type="text"  name="gameDown" id="gameDown" value="${active.gameDown }"/>
											</div>
										</div>
										<div class="item">
											<label><i>*</i>列表展示图：</label>
											<input type="file"  name="image1" id="image1" /><input type="button" value="提交" id="image1Upload" class="btn btn3"/>
											<input type="text"  id="image1Url" name="image1Url" value="${active.image1}"  readonly="readonly"> </input>  
											<p style="margin-left: 105px; line-height: 24px;"><font color="red">最大100k，名称不要有中文,选择图片后请点击提交(760 * 150)</font></p>
<!-- 											<p class="discribe" style="margin-left: 105px; line-height: 24px;">说明：如果您使用的是IE浏览器，需要做如下设置方能进行上传文件大小判断！</p> -->
<!-- 											<p class="opt-ie"> -->
<!-- 												工具 -&gt; Internet选项 -&gt; （选项卡）安全 -&gt; 自定义级别 -&gt;找到"将文件上载到服务器时包含本地目录路径" -&gt; 将“禁用”选项改为“启用” -&gt; 确定 -->
<!-- 											</p> -->
										</div>
										<div class="item">
											<label><i>*</i>TOP条大图：</label>
											<input type="file"  name="image2" id="image2" /><input type="button" value="提交" id="image2Upload" class="btn btn3"/>
											<input type="text"  id="image2Url" name="image2Url"  value="${active.image2 }" readonly="readonly"></input> 
											<p style="margin-left: 105px; line-height: 24px;"><font color="red">最大100k，名称不要有中文,选择图片后请点击提交(760 * 160)</font></p>
<!-- 											<p class="discribe" style="margin-left: 105px; line-height: 24px;">说明：如果您使用的是IE浏览器，需要做如下设置方能进行上传文件大小判断！</p> -->
<!-- 											<p class="opt-ie"> -->
<!-- 												工具 -&gt; Internet选项 -&gt; （选项卡）安全 -&gt; 自定义级别 -&gt;找到"将文件上载到服务器时包含本地目录路径" -&gt; 将“禁用”选项改为“启用” -&gt; 确定 -->
<!-- 											</p> -->
										</div>
										<div class="item">
											<label><i>*</i>TOP图链接：</label>
											<input type="text" placeholder="http://abc.com" name="image2Link" id="image2Link" value='${active.image2Link }'/>
										</div>
										<div class="item clearfix">
											<label><i>*</i>活动描述：</label>
											<textarea name="memo" id="memo" class="mt05">${active.memo }</textarea>
										</div>
										<div class="item datetime">
											<label><i>*</i>活动时间：</label>
											<input type="text" class="datepicker" placeholder="请选择开始日期" name="startDate" id="startDate" value="${startDate}"/>
											<input type="text" class="timepicker" placeholder="请选择开始时间" name="startHour" id="startHour" value="${startHour}"/>
											<span>至</span>
											<input type="text" class="datepicker" placeholder="请选择结束日期" name="endDate" id="endDate" value="${endDate}"/>
											<input type="text" class="timepicker" placeholder="请选择结束时间" name="endHour" id="endHour" value="${endHour}"/>
										</div>
										<div class="item clearfix" style="overflow: hidden;">
											<label class="mr05"><i>*</i>活动介绍：</label>
											<div class="mt05">
												<textarea name="introduce" id="introduce">${active.introduce }</textarea>
												<span class="fr txtno">活动介绍字数：<span id="introduceHtmlCount" style="color: red;"></span></span>
											</div>
										</div>
										<input type="hidden" id="introduceCount"></input>
										<input type="hidden" id="introduceHtml" name="introduceHtml"/>
									</div>
								</section>
								<section class="active-condition mt10">
									<div class="title pl10">
										<h5>活动参与条件</h5>
									</div>
									<input type="hidden" name="baseinfo1Radio" id="baseinfo1Radio"></input>
									<input type="hidden" name="baseinfo1Input" id="baseinfo1Input"></input>
									<input type="hidden" name="baseinfo1Text" id="baseinfo1Text"></input>
									<input type="hidden" name="baseinfo2Radio" id="baseinfo2Radio"></input>
									<input type="hidden" name="baseinfo2Input" id="baseinfo2Input"></input>
									<input type="hidden" name="baseinfo2Text" id="baseinfo2Text"></input>
									<input type="hidden" name="baseinfo3Radio" id="baseinfo3Radio"></input>
									<input type="hidden" name="baseinfo3Input" id="baseinfo3Input"></input>
									<input type="hidden" name="baseinfo3Text" id="baseinfo3Text"></input>
									<div class="content" id="ruleContent">
										<div class="item clearfix">
											<div class="item-left">
												<label>
													<input type="radio" name="baseinfo1" class="slt" value="1"/>
													<span>用户基本资料完整度：</span>
												</label>
												<input type="text" value="100"/>
												<span>%</span>
											</div>
											<div class="item-right">
												<label>前端文字描述：</label>
												<input type="text" value="参加活动用户基本资料完整度需达到100%" disabled="true" />
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>
													<input type="radio" name="baseinfo1" class="slt" value="2"/>
													<span>用户联系资料完整度：</span>
												</label>
												<input name="baseinfo1" type="text" value="100"/>
												<span>%</span>
											</div>
											<div class="item-right">
												<label>前端文字描述：</label>
												<input type="text" value="参加活动用户联系资料完整度需达到100%" disabled="disabled" />
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>
													<input type="radio" name="baseinfo1" class="slt" value="3"/>
													<span>用户站内等级：</span>
												</label>
												<input name="baseinfo1" type="text" value="2" />
												<span>级</span>
											</div>
											<div class="item-right">
												<label>前端文字描述：</label>
												<input type="text" value="参加活动用户站内等级需要达到2级" disabled="disabled" />
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>
													<input type="checkbox" name="baseinfo2" class="slt" value="4" id="baseinfo2"/>
													<span>活动参与消费G币：</span>
												</label>
												<input type="text" placeholder="请输入G币数" />
												<span>G/次</span>
											</div>
											<div class="item-right">
												<label>前端文字描述：</label>
												<input type="text" value="参加活动用户每次抽奖需消耗*G" disabled="disabled" />
											</div>
										</div>
										<div class="item clearfix">
											<div class="item-left">
												<label>
													<input type="checkbox" name="baseinfo3" class="slt" value="5" id="baseinfo3"/>
													<span>活动抽奖次数：</span>
												</label>
												<input type="text" placeholder="请输入数字" />
												<span>次</span>
											</div>
											<div class="item-right">
												<label>前端文字描述：</label>
												<input type="text" value="活动期间用户每天可抽奖次数为*次" disabled="true" />
											</div>
										</div>
									</div>
								</section>
								<div class="oper-row mt20">
									<input type="button" class="btn-reset btn btn1" value="条件重置">
									<input id="submitButton"  type="button" class="btn-save btn btn2" value="保存">
									<input type="button" class="btn-cancel btn btn3" value="取消" onclick="window.location.href='${ctx }/activity/index.do'">
								</div>
								<input type="hidden" id= "hiGameType" name="hiGameType" value="${active.gameType }"></input>
								<input type="hidden" id= "hiRule" name="hiRule" value='${active.rule }'></input>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>


